package com.eagle.common.service;

import java.util.List;

import com.eagle.common.entity.po.AdminRoles;
import com.eagle.common.entity.po.query.AdminRolesQuery;
import com.eagle.common.entity.vo.PaginationResult;
import com.eagle.common.exception.BusinessException;


/**
 * 
 * 后台角色表 业务接口
 * 
 */
public interface AdminRolesService {

	/**
	 * 根据条件查询列表
	 */
	public List<AdminRoles> findListByParam(AdminRolesQuery param);

	/**
	 * 根据条件查询列表
	 */
	public Integer findCountByParam(AdminRolesQuery param);

	/**
	 * 分页查询
	 */
	public PaginationResult<AdminRoles> findListByPage(AdminRolesQuery param);

	/**
	 * 新增
	 */
	public Integer add(AdminRoles bean) throws BusinessException;

	/**
	 * 批量新增
	 */
	public Integer addBatch(List<AdminRoles> listBean);

	/**
	 * 根据Id修改
	 */
	public Integer updateById(AdminRoles bean,Integer id);


	/**
	 * 根据Id删除
	 */
	public Integer deleteById(Integer id);


	/**
	 * 根据Id查询对象
	 */
	 public AdminRoles getAdminRolesById(Integer id);

}